﻿using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;

using AKMII.DMRA.Common;
using AKMII.DMRA.DataAccess;

namespace AKMII.DMRA.DataLoader
{
    public enum Command
    {
        Download = 0,
        Decrypt = 1,
        Decompress = 2,
        Format = 3,
        Generate = 4,
        Compress = 5,
        Encrypt = 6,
        Upload = 7
    }

    public static class Constants
    {
        public const string SubjectForAssignLeads = "Leads under your divisiion without assigned";
        public const string ContentForAssignLeads = "We have assigned some leads under your division to you, please have a check.";
        public const string SubjectForWeeklyReminderMail = "Get ready to order your leads";
        public const string ContentForWeeklyReminderMail = "This is a reminder that you can order your leads for {0} starting on {1} and you will have until {2}.\r\nPlease schedule time in this window to complete your order.\r\nThank you!";
        public const string SubjectForReminderMail = "Reminder to order your lead cards";
        public const string ContentForReminderMail = "This is just an automated reminder mail to let you know that you haven’t placed your lead card order for the current period. Please go to www.MyLeadCards.com and place your order by midnight (CST) on {0}.\r\nThank you!";
        public const string FileNameForMonthlySummary = "{0}_{1}{2}_SumRpt.xls";
        public const string FileNameForSummaryToAdmin = "AgentLeadSumComp_{0}{1}.xls";
        public const string FileNameForMdSummary = "Order_Information_{0}{1}.xls";
        public const string FileNameForRepeatOrder = "RepeatOrder_{0}{1}.xls";
        public const string FileNameForDmra = "esmhist{0}{1}.txt";
        public const string FileNameForPrintingHouse = "Order{0}{1}.txt";
        public static readonly string LogConfigFile = ConfigurationManager.AppSettings["logging.config"];
        public static readonly string ConnectionString = ConfigurationManager.AppSettings["ConnectionString"];

        public const string MailSubjectException = "Exception in {0}";
        public const string MailContentException = "Exception in {0} at {1}, it is maybe caused by the {2}.Please check your setting by using admin page firstly.";
        public const string MailSubjectFoundNewFile = "Found new files Remeinder";
        public const string MailContentFoundNewFile = "New data files to be uploaded to the production system were placed on the FTP server. The file format has been checked against the latest ESM layout file and the files will be uploaded to production at the next scheduled update time.";
        public const string MailSubjectOrderSummary = "Orders summary Informaton for {0}";
        public const string MailContentOrderSummary = "The order period for {0} is complete and the order file had been uploaded to the printer successfully. The file size was {1} and the totals for the order were:\n{2}";
        public const string OrderSummaryMailRecipts = "Scott.Kretschmar@combined.com;tomc@integrapds.com;mikes@dmrainc.com";
        #region Ftp Parameters

        public const char NULL_CHAR = '\0';
        public const string TAB = "\t";
        public const char TAB_CHAR = '\t';
        public const string SPACE = " ";
        public const char SPACE_CHAR = ' ';
        public const string BACK_SLASH = "\\";
        public const string DOT = ".";
        public const string STAR = "*";
        public const string ZIP_FILE_EXTENSION = ".zip";
        public const string YES = "Yes";
        public const string ATLAS_EXCLUDE_DIVISION = "Marketing";
        public const string MSNUS_ARBITER = "MsnUs_Arbiter";
        public const string DAY_SOURCE_FIELD = "[Day].[Instance]";
        public const string SEGMENT_FIELD_NAME = "[Placements].[Site].[Segment].[MEMBER_CAPTION]";
        public const string COLON = ":";
        public const string MONTH_SOURCE_FIELD = "[Month].[Instance]";
        public const string COMMA = ",";
        public const string DOUBLE_DELIM = @","""","""",";
        public const string DOUBLE_SEP = "|##|##|";
        public const string DQUOTE = @"""";
        public const string DQUOTE_PAIR = @"""""";
        public const string EMPTY = "";
        public const string SINGLE_DELIM = @","""",";
        public const string SINGLE_SEP = "|##|";
        public const string SLASH = "/";
        public const string TRIPLE_DELIM = @","""","""","""",";
        public const string TRIPLE_SEP = "|##|##|##|";

        #endregion
    }
}
